<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/layui.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/view.css" />
    <title>添加系页面</title>
</head>
<body class="layui-view-body">
<div class="layui-content">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header" style="position:relative;">添加系信息
                <a href="${pageContext.request.contextPath}/dept/toFindAllDeptPage/1/5" class="layui-btn layui-btn-primary" style="float: right">返回</a>
                <span style="color: red;margin-left: 50px">${error}</span>
            </div>

            <form class="layui-form layui-card-body" action="${pageContext.request.contextPath}/dept/addDept" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">系编号</label>
                    <div class="layui-input-block">
                        <input type="text" name="dno" required lay-verify="required"
                               placeholder="请输入系编号" autocomplete="off" class="layui-input"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">系名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" required lay-verify="required"
                                placeholder="请输入系名称" autocomplete="off" class="layui-input"/>
                    </div>
                </div>

                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">系描述</label>
                    <div  class="layui-input-block">
                        <textarea placeholder="请输入系描述" class="layui-textarea" name="remark" required lay-verify="required"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-blue" lay-submit lay-filter="formDemo" >
                            立即提交
                        </button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/assets/layui.all.js"></script>
<script>
    let form = layui.form,
        layer = layui.layer;
</script>
</body>
</html>
